package com.clz.servise.Impl;

import com.clz.Dao.Impl.VoteDaoImpl;
import com.clz.Dao.VoteDao;
import com.clz.servise.VoteService;

public class VoteSercieImp implements VoteService {
    private VoteDao voteDao=new VoteDaoImpl();
    @Override
    public boolean Vote(int id) {
        int n= voteDao.updateVoteByID(id);
        return n==1;
    }
}
